package com.yhl.vocation.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yhl.vocation.entity.pojo.Menu;
import com.yhl.vocation.service.MenuService;
import com.yhl.vocation.mapper.MenuMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author acompe
* @description 针对表【menu(菜单)】的数据库操作Service实现
* @createDate 2023-03-08 17:51:09
*/
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu>
    implements MenuService{


    @Override
    public List<Menu> getMenus(Integer type) {
        return getBaseMapper().selectList(new LambdaQueryWrapper<Menu>().eq(Menu::getType,type));
    }
}




